<template>
    <lay-button type="primary" @click="test">测试</lay-button>
</template>

<script>
import { layer } from '@layui/layer-vue'
export default {
    name:"index",
    methods:{
        test(){
            layer.msg("test")
        }
    }
}
</script>
